home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 4: GNU Archives / Linux Cubed Series 4 - GNU Archives.iso / gnu / binutils.7 / binutils / binutils-2.7 / ld / scripttempl / aout.sc < prev    next >
Encoding:
Text File  |  1996-07-04  |  1.1 KB  |  52 lines

  1. cat <<EOF
  2. OUTPUT_FORMAT("${OUTPUT_FORMAT}")
  3. OUTPUT_ARCH(${ARCH})
  4.  
  5. ${RELOCATING+${LIB_SEARCH_DIRS}}
  6. ${STACKZERO+${RELOCATING+${STACKZERO}}}
  7. ${SHLIB_PATH+${RELOCATING+${SHLIB_PATH}}}
  8. ${RELOCATING+${EXECUTABLE_SYMBOLS}}
  9. ${RELOCATING+PROVIDE (__stack = 0);}
  10. SECTIONS
  11. {
  12.   ${RELOCATING+. = ${TEXT_START_ADDR};}
  13.   .text :
  14.   {
  15.     CREATE_OBJECT_SYMBOLS
  16.     *(.text)
  17.     /* The next six sections are for SunOS dynamic linking.  The order
  18.        is important.  */
  19.     *(.dynrel)
  20.     *(.hash)
  21.     *(.dynsym)
  22.     *(.dynstr)
  23.     *(.rules)
  24.     *(.need)
  25.     ${RELOCATING+_etext = .;}
  26.     ${RELOCATING+__etext = .;}
  27.     ${PAD_TEXT+${RELOCATING+. = ${DATA_ALIGNMENT};}}
  28.   }
  29.   ${RELOCATING+. = ${DATA_ALIGNMENT};}
  30.   .data :
  31.   {
  32.     /* The first three sections are for SunOS dynamic linking.  */
  33.     *(.dynamic)
  34.     *(.got)
  35.     *(.plt)
  36.     *(.data)
  37.     *(.linux-dynamic) /* For Linux dynamic linking.  */
  38.     ${CONSTRUCTING+CONSTRUCTORS}
  39.     ${RELOCATING+_edata  =  .;}
  40.     ${RELOCATING+__edata  =  .;}
  41.   }
  42.   .bss :
  43.   {
  44.    ${RELOCATING+ __bss_start = .};
  45.    *(.bss)
  46.    *(COMMON)
  47.    ${RELOCATING+_end = ALIGN(4) };
  48.    ${RELOCATING+__end = ALIGN(4) };
  49.   }
  50. }
  51. EOF
  52.